<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;


Route::get('/', function () {
    return view('auth.login');
});
Auth::routes();
Route::get('/binding', 'Api\Banding@index');
Route::post('/binding', 'Api\Banding@store');

/*Route::get('/we', function () {
    return view('welcome');
});

Route::get('/auth/callback', function (Request $request) {
    if ($request->get('code')) {
        return $request->get('code');
    } else {
        return 'Access Denied';
    }
});




*/

/*
Route::get('/home', 'HomeController@index')->name('home');
Route::get('/first', 'Title\AddFirstTitleController@index');
Route::post('/first', 'Title\AddFirstTitleController@store');
Route::get('/first/{id}', 'Title\AddFirstTitleController@show');
//Route::get('/first1', 'Title\AddFirstTitleController@getAll');
Route::delete('/first/{id}', 'Title\AddFirstTitleController@destroy');


Route::post('/second', 'Title\AddSecondTitleController@store');
Route::get('/second/{id}', 'Title\AddSecondTitleController@show');
Route::get('/second1/{id}', 'Title\AddSecondTitleController@index');
Route::post('/second1', 'Title\AddSecondTitleController@update');
Route::delete('/second/{id}', 'Title\AddSecondTitleController@destroy');*/
